<template>
  <div>
    <button
      v-for="item in 5"
      :key="item"
      :class="{ active: item === value }"
      @click="$emit('input', item)"
    >
      {{ item }}
    </button>
  </div>
</template>

<script>
  export default {
    name: "page",
    props: ["value"],
  };
</script>

<style>
  .active {
    background: red;
  }
</style>
